package com.apesay.utils;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;


public class ResponseEntity implements Serializable {

	private static final long serialVersionUID = 5296264326011920871L;
	
	@JSONField(name="status")
	private String status = Constant.API_CALL_STATUS_SUCCESS;
	
	@JSONField(name="msg")
	private String msg = Constant.API_CALL_STATUS_SUCCESS_MSG;
	
	
	private String data;

	@JSONField(name=Constant.RESULT)
	private Object result;
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	
	 /**
	  * @param result the result to set
	  */
	  
	public void setResult(Object result) {
		this.result = result;
	}

	
	 /**
	  * result
	  *
	  * @return  the result
	  * @since   1.0.0
	  */
	
	public Object getResult() {
		if(this.result == null) return new Object();
		return result;
	}
	
	

}
